package org.example;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

//@SpringBootApplication
//@EnableDiscoveryClient
//@EnableCircuitBreaker //开启服务熔断
@SpringCloudApplication //组合注解包含以上三个注解
public class HystrixPaymentApplication {
    //主方法启动
    public static void main(String[] args) {
        SpringApplication.run(HystrixPaymentApplication.class,args);
    }

}
